feat: rename terserOptions to minimizerOptions#667
Merged
alexander-akait merged 2 commits intomainfrom May 4, 2026
Merged
Conversation
Introduce `minimizerOptions` as the canonical name for the options that are forwarded to the active minimizer (Terser by default, or whatever function is supplied via `minify`). The previous `terserOptions` key keeps working as a deprecated alias; passing both at the same time now throws an explicit error. Schema, JSDoc-derived TypeScript declarations, README examples and tests have been updated to favour the new name while still validating the old one.
… set Prefer `minimizerOptions` silently when both are provided instead of throwing. This keeps existing configurations that pass the deprecated `terserOptions` working unchanged, even if a tooling layer also injects the new key.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #667 +/- ##
==========================================
+ Coverage 97.36% 97.38% +0.01%
==========================================
Files 3 3
Lines 380 382 +2
Branches 154 154
==========================================
+ Hits 370 372 +2
Misses 10 10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce
minimizerOptionsas the canonical name for the options thatare forwarded to the active minimizer (Terser by default, or whatever
function is supplied via
minify). The previousterserOptionskeykeeps working as a deprecated alias; passing both at the same time now
throws an explicit error.
Schema, JSDoc-derived TypeScript declarations, README examples and tests
have been updated to favour the new name while still validating the old
one.